m = eval(input("请输入需纳税部分金额："))
tax = 0
if m > 0:
        if m <= 1500:
            tax = m * 0.03
        elif m <= 4500:
            tax = 1500 * 0.03 + (m - 1500) * 0.1
        elif m <= 9000:
            tax = 1500 * 0.03 + 3000 * 0.1 + (m - 4500) * 0.2
        elif m <= 35000:
            tax = 1500 * 0.03 + 3000 * 0.1 + 4500 * 0.2 + (m - 9000) * 0.25
        elif m <= 55000:
            tax = 1500 * 0.03 + 3000 * 0.1 + 4500 * 0.2 + 26000 * 0.25 + (m - 35000) * 0.3
        elif m <= 80000:
            tax = 1500 * 0.03 + 3000 * 0.1 + 4500 * 0.2 + 26000 * 0.25 + 20000 * 0.3 + (m - 55000) * 0.35
        else:
            tax = 1500 * 0.03 + 3000 * 0.1 + 4500 * 0.2 + 26000 * 0.25 + 20000 * 0.3 + 25000 * 0.35 + (m - 80000) * 0.45
        print("个人所得税为{}".format(tax))
